import request from '@/utils/request'

// 查询竞价项目列表
export function listAuctionProject(query) {
  return request({
    url: '/supply/auctionProject/list',
    method: 'get',
    params: query
  })
}

// 查询竞价项目详细
export function getAuctionProject(id) {
  return request({
    url: '/supply/auctionProject/' + id,
    method: 'get'
  })
}

// 新增竞价项目
export function addAuctionProject(data) {
  return request({
    url: '/supply/auctionProject',
    method: 'post',
    data: data
  })
}

// 修改竞价项目
export function updateAuctionProject(data) {
  return request({
    url: '/supply/auctionProject',
    method: 'put',
    data: data
  })
}

// 删除竞价项目
export function delAuctionProject(id) {
  return request({
    url: '/supply/auctionProject/' + id,
    method: 'delete'
  })
}
